Skip to main content

revBrowserSnapshot

Type

command

Summary

Takes a snapshot of the current browser page.

Syntax

revBrowserSnapshot <instanceId>, <variableName>

Description

The revBrowserSnapshot command takes a snapshot of the page currently being displayed in the specified browser object.

The variableName should be the name of a declared variable. This means that before calling revBrowserSnapshot a variable to place the image data into should be declared using the local command.

Parameters

NameTypeDescription

instanceId

The integer identifier of a browser object.

variableName

The name of a variable to place the resulting image data into.

Examples

local tSnapshot
revBrowserSnapshot sBrowserId, "tSnapshot"
set the imageData of image "Browser Thumbnail" to tSnapshot

Value

NameTypeDescription

the result

The revBrowserSnapshot command puts empty into the result.

command: local, revBrowserPrint, revBrowserClose, revBrowserSet

function: result

glossary: command

Compatibility and Support

Introduced

LiveCode 2.8.1

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?